//
//  LECornerImageView.m
//  CreditAddressBook
//
//  Created by Lee on 15/10/1.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import "LECornerImageView.h"

@implementation LECornerImageView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupLayer];
    }
    return self;
}

- (void)awakeFromNib {
    [self setupLayer];
}

- (void)setFrame:(CGRect)frame {
    [super setFrame:frame];
    [self setupLayer];
}

- (void)setupLayer {
    self.layer.cornerRadius = self.frame.size.width/2.f;
    self.layer.masksToBounds = YES;
}

@end
